package com.core.website.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class ApplicationEsRunner implements ApplicationRunner {
    @Autowired
    private EsServiceImpl esServiceImpl;
    @Override
    public void run(ApplicationArguments args) throws Exception {
        new Thread(new Runnable() {
            @Override
            public void run() {
//                esServiceImpl.initContent();
            }
        }).start();
    }
}
